package cn.itcast.feignclient.user;


import cn.itcast.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "uclient",url = "http://localhost:8081/")
public interface UserService1FeignClient {
    @GetMapping("/user/{id}")
    public User getById(@PathVariable Long id);
}
